package com.yuw.dz;

public class Monitor {
    // 属性
    private String stuName;
    private int stuScore;

    // 行为


    public Monitor(String stuName, int stuScore) {
        this.stuName = stuName;
        this.stuScore = stuScore;
    }

    public Monitor() {
    }

    /**
     * 学习行为
     */
    public void doStuding() {
        System.out.println("I am studing...");
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public int getStuScore() {
        return stuScore;
    }

    public void setStuScore(int stuScore) {
        this.stuScore = stuScore;
    }

    @Override
    public String toString() {
        return "Monitor{" +
                "stuName='" + stuName + '\'' +
                ", stuScore=" + stuScore +
                '}';
    }
}
